import React from 'react';
import Head from '../Head';
import Nav from '../Nav';
import {Input} from 'antd';
import HeaderStyles from './index.module.scss';

import {navRoutes} from '@/router';
const {Search} = Input;
// 网站头部
export default class Header extends React.Component {
    render() {
        return (
            <div className={HeaderStyles.header}>
                <div className={HeaderStyles.fix_header}>
                    <div className="main_center">
                        <Head />
                        <Nav navList={navRoutes}>
                            <Search
                                placeholder="请输入关键词搜索"
                                onSearch={value => console.log(value)}
                                style={{width: 200}}
                            />
                        </Nav>
                    </div>
                </div>
                <div className={HeaderStyles.box}></div>
            </div>
        );
    }
}
